package com.liuzy.dsoframer;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletRegistrationBean;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
public class DsoframerApplication {

    public static void main(String[] args) {
        SpringApplication.run(DsoframerApplication.class, args);
    }

    @Bean
    public ServletRegistrationBean getServlet1() {
        com.zhuozhengsoft.pageoffice.poserver.Server servlet = new com.zhuozhengsoft.pageoffice.poserver.Server();
        ServletRegistrationBean bean = new ServletRegistrationBean(servlet);
        bean.addUrlMappings("/zz");
        bean.addUrlMappings("/zz/*");
        return bean;
    }
    @Bean
    public ServletRegistrationBean getServlet2() {
        com.zhuozhengsoft.pageoffice.poserver.AdminSeal servlet = new com.zhuozhengsoft.pageoffice.poserver.AdminSeal();
        ServletRegistrationBean bean = new ServletRegistrationBean(servlet);
        bean.addUrlMappings("/zz2");
        bean.addUrlMappings("/zz2/*");
        return bean;
    }
}
